Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix audit_log not generated for disruptive actions #175

Closed

Conversation

victorhora
Copy link
Contributor

PR intended to fix issues #170, owasp-modsecurity/ModSecurity/issues/2220 and owasp-modsecurity/ModSecurity/issues/2237 where the audit_log audit_log not generated for disruptive actions.

This changes commit baef88a that fixes the custom error pages issue (owasp-modsecurity/ModSecurity#2143) but it seemed to be returning too early not allowing the audit_logs to be generated on all phases.

@defanator
Copy link
Collaborator

@victorhora I have a strong feeling that we need tests here. Logging is clearly a PITA-point in the connector part as well, so having broader test coverage here will be a great benefit.

@jeremyjpj0916
Copy link

Can confirm this PR does work, been testing it in my sandbox environments.

@zimmerle
Copy link
Contributor

@victorhora Merging this. It will be very good to have the tests as @defanator suggests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants